package com.eboss2.sbs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.eboss2.sbs.R;
import com.eboss2.sbs.activity.base.BaseActivity;
import com.mytools.tool.activityManager.MyActivityManager;

public class MyDetailCustomFromListActivity extends BaseActivity implements View.OnClickListener{

	private TextView tv_gz_status;
	private TextView tv_wx_name;
	private TextView tv_member_id;
	private TextView tv_member_grade;
	private TextView tv_from_to;
	private TextView tv_qb_status;
	private TextView tv_join_time;
	private TextView tv_shop_sale_count;
	private TextView tv_name;
	private TextView tv_gender;
	private TextView tv_address;
	private TextView tv_card_no;
	private RelativeLayout rl_shop_sale_count;




	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this;
		setContentView(R.layout.activity_my_detail_custom_from_list);
		MyActivityManager.getInstance().addActivity(this);
		initView();
	}
	
	private void initView(){
		showView(R.id.titleback_btn_back, true);
		setTvText(R.id.tv_title, "会员详情");
		showView(R.id.next_sure, false);
		findViewById(R.id.titleback_btn_back).setOnClickListener(this);
		findViewById(R.id.next_sure).setOnClickListener(this);

		tv_gz_status = textView(R.id.tv_gz_status);
		tv_wx_name = textView(R.id.tv_wx_name);
		tv_member_id = textView(R.id.tv_member_id);
		tv_member_grade = textView(R.id.tv_member_grade);
		tv_shop_sale_count = textView(R.id.tv_shop_sale_count);
		tv_from_to = textView(R.id.tv_from_to);
		tv_qb_status = textView(R.id.tv_qb_status);
		tv_join_time = textView(R.id.tv_join_time);
		tv_name = textView(R.id.tv_name);
		tv_gender = textView(R.id.tv_gender);
		tv_address = textView(R.id.tv_address);
		tv_card_no = textView(R.id.tv_card_no);



		rl_shop_sale_count = relativeLayout(R.id.rl_shop_sale_count);
		rl_shop_sale_count.setOnClickListener(this);



	}





	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.titleback_btn_back:
				finish();
				break;
			case R.id.rl_shop_sale_count:
				startActivity(new Intent(mContext, MyMemberRecordActivity.class).putExtra("type", 2));
				break;

			default:break;
		}
	}

	
}
